<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\ProjectEase */
/* @var $form yii\bootstrap\ActiveForm */
?>

<div class="project-ease-form">

    <?php $form = ActiveForm::begin(['layout' => 'horizontal',]); ?>

    <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'package_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'borrower')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'province')->textInput() ?>

    <?= $form->field($model, 'city')->textInput() ?>

    <?= $form->field($model, 'category')->textInput() ?>

    <?= $form->field($model, 'principal')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'interest')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'is_highlights')->textInput() ?>

    <?= $form->field($model, 'highlights')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'is_suit')->textInput() ?>

    <?= $form->field($model, 'stakeholders')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'management_status')->textInput() ?>

    <?= $form->field($model, 'stakeholders_status')->textInput() ?>

    <?= $form->field($model, 'mortgage_principal')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_interest')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_owner')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_type')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'other_warrants_code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_address')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_building_area')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_land_area')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mortgage_detail')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'created_at')->textInput() ?>

    <div class="row">
        <div class="col-sm-offset-3">
            <div class="form-group">
                <?= Html::submitButton('提交', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
            </div>
        </div>
    </div>

    <?php ActiveForm::end(); ?>

</div>
